<?php
namespace APP\C;

class Frame extends Controller
{
    public function init()
    {
        // 是否已登陆
        if (!\SF\Session\Session::get(self::SESS_EMAIL)) {
            echo '<script type="text/javascript">window.parent.location.href="/account/login";</script>';
            exit;
        }
    }

    public function addAction()
    {
        $this->view->render('frame/add.tpl');
    }
}